import os

try:
    from dotenv import load_dotenv
    load_dotenv()
except Exception:
    pass
# 模型名称
MODEL = "qwen-plus"
# apikey
DASHSCOPE_API_KEY = "sk-ff40d48c20ef45949e236e06d0a43a2e"
# 温度系数
TEMPERATURE = 0.7

# 本地知识文档路径
DOC_DIR = "/Users/fenghuanwang/PythonProject/langchain-test/doc"
# 向量数据存放路径
EMBEDDINGS_DIR = "./embeddings"
# 文档库名称
COLLECTION_NAME = "java_docs"

# redis连接地址
REDIS_URL = "redis://localhost:6379/0"
# redis key过期时间
REDIS_TTL = 10000000
# config.py
DATABASE_URL = "postgresql+asyncpg://postgres:E628L1..3K220@47.95.35.178:5432/langchain"
# 检索器打分返回阈值
RAG_TOP_K = 4
# 文件生成后保存的路径
EXPORT_DIR = "./exports"
